package com.tang.boot.boot.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tang.boot.boot.domain.Book;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface BookDao extends BaseMapper<Book> {

    /*@Insert("insert into tbl_book values(null, #{type}, #{name}, #{description})")
    int insert(Book book);

    @Delete("delete from tbl_book where id = #{id}")
    int delete(Integer id);

    @Update("update tbl_book set type = #{type}, name=#{name}, description=#{description} where id = #{id}")
    int update(Book book);

    @Select("select * from tbl_book where id = #{id}")
    Book getById(Integer id);

    @Select("select * from tbl_book")
    List<Book> getAll();*/
}
